package com.zzy.quartz.task;

import com.zzy.common.utils.StringUtils;
import com.zzy.common.utils.spring.SpringUtils;
import com.zzy.system.service.ISaleOrderService;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author zzy
 */
@Component("ryTask")
public class RyTask {
    private ISaleOrderService saleOrderService= SpringUtils.getBean(ISaleOrderService.class);
    public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) {
        System.out.println(StringUtils.format("执行多参方法： 字符串类型{}，布尔类型{}，长整型{}，浮点型{}，整形{}", s, b, l, d, i));
    }

    public void ryParams(String params) {
        System.out.println("执行有参方法：" + params);
    }
    public void getGuanmaiOrderState() throws Exception {
        System.out.println("获取观麦配送中订单状态数据");
        saleOrderService.getGuanmaiSaleOrderList(10,"","",0,100,1);

    }
    public void getGuanmaiOrderStateByDate(String beginDate,String endDate,Integer status) throws Exception {


    }
    public void getGuanmaiHistoryOrderState() throws Exception {
        System.out.println("获取观麦已签收订单状态数据");
        saleOrderService.getGuanmaiSaleOrderList(15,"","",0,100,1);
    }
    public void pushHistoryOrderState() throws Exception {
        System.out.println("往祐全推送已签收历史数据");


    }
    public void pushNowOrderState() throws Exception {
        System.out.println("往祐全推送配送中数据数据");


    }
    public void ryNoParams() throws Exception {
//        System.out.println("获取观麦订单状态数据");
//        saleOrderService.getGuanmaiSaleOrderList(15,"","",0,100,1);
        //推送订单到祐全
        // saleOrderService.pushPurchaseData();
    }
}
